package com.tim.dao;

import com.tim.pojo.Plot;

import java.sql.SQLException;
import java.util.List;

/**
 * 作者：Tim
 * 时间：2021/4/25 16:36
 */
public interface PlotDao {
    List<Plot> selectAll() throws SQLException;
    int deletePlot(int id) throws SQLException;
    int addPlot(Plot plot) throws SQLException;
    Plot selectOne(int id) throws SQLException;
    int updatePlot(Plot plot) throws SQLException;
    List<Plot> searchPlot(String plotName) throws SQLException;
    List<Plot> limit(Integer currentPage,Integer pageSize,String plotName) throws SQLException;
    int count(String plotName) throws SQLException;
}
